package com.qaml.mes.device.repository;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qaml.mes.device.dao.CheckUpkeepMessageDO;
import com.qaml.mes.device.dto.eqp.CheckUpkeepMessageDTO;

import java.util.Date;
import java.util.List;

/**
 * @ClassName CheckUpkeepMessageRepository
 * @Description TODO
 * @Author leikai
 * @Date 2024/3/4 0004 11:26
 * @Version 1.0
 */
public interface CheckUpkeepMessageRepository {

    void saveBatch(List<CheckUpkeepMessageDO> checkUpkeepMessages);

    IPage<CheckUpkeepMessageDO> pageList(CheckUpkeepMessageDTO checkUpkeepMessageDTO);

    CheckUpkeepMessageDO getById(String id);

    void updateById(CheckUpkeepMessageDO messageDO);

    List<CheckUpkeepMessageDO> getUnReadMessageList(String currentUserId);

    void updateByIds(List<String> ids, String userId, String userName);

    List<CheckUpkeepMessageDO> getNoDeletedMessage(Date startDateByMonth, Date endDateByMonth);

    void deleteAll(List<String> ids);

    void deleteByRecordId(String recordId, String type);
}